﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DownLoadTime.aspx.cs" Inherits="UI_Bas_DownLoadTime" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title >下载时间维护</title>
    <script src="../../js/jquery.easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <link href="../../js/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery.easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>

    <style type="text/css">
        #divContent input
        {
    	    width:360px;
        }       
    </style>
    
    <script type = "text/javascript">
        function Check() {
            var val = CheckTime($("#txtEBayOrderTime").val());
            if (!val) {
                alert('Ebay订单下载起始时间格式不正确');
                return false;
            }
            val = CheckTime($("#txtEBayFeeTime").val());
            if (!val) {
                alert('EbayFee下载起始时间格式不正确');
                return false;
            }
            val = CheckTime($("#txtActiveListingTime").val());
            if (!val) {
                alert('ActiveListing下载起始时间格式不正确');
                return false;
            }
            val = $('divbody').form('validate');
            return val;
        }
        function CheckTime(s) {
            var reg = /^[0-2][0-9]:[0-5][0-9]$/;
            return reg.test(s);
        }
    </script>
</head>
<body>
<div id ="divbody" >
   <form id="form1" runat="server">
    <div  id ="divContent" class = "easyui-panel" title ="下载时间维护" >
        <table>
             <tr>
                <td align ="right">Ebay订单下载起始时间：</td>
                <td >
                    <input type="text" id="txtEBayOrderTime" runat="server" class="easyui-validatebox" required = "true" />
                </td>
            </tr>
            <tr>                
                <td align ="right">Ebay订单下载间隔时间：</td>
                <td>
                    <input type="text" id="txtEBayOrderInterval" runat="server" class="easyui-numberbox" required = "true" />             
                </td>
            </tr>
            
             <tr>
                <td align ="right">EbayFee下载起始时间：</td>
                <td >
                    <input type="text" id="txtEBayFeeTime" runat="server" class="easyui-validatebox" required = "true" />
                </td>
            </tr>
            <tr>                
                <td align ="right">EbayFee下载间隔时间：</td>
                <td >
                    <input type="text" id="txtEBayFeeInterval" runat="server" class="easyui-numberbox" required = "true" />    
                </td>
            </tr>
            
             <tr>
                <td align ="right">ActiveListing下载起始时间：</td>
                <td >
                    <input type="text" id="txtActiveListingTime" runat="server" class="easyui-validatebox" required = "true" />
                </td>
            </tr>
            <tr>                
                <td align ="right">ActiveListing下载间隔时间：</td>
                <td >
                    <input type="text" id="txtActiveListingInterval" runat="server" class="easyui-numberbox" required = "true" />    
                </td>
            </tr>
        </table>
     </div>
    <div id ="divOperating" >
        <table >
           <tr>
            <td >
               <asp:LinkButton ID="btnSave" runat="server" CssClass="easyui-linkbutton" Text="提交" OnClick="btnSave_Click"  OnClientClick=" return Check();"></asp:LinkButton>
            </td>
          </tr>
         </table>
      </div>
   </form>
  </div>
</body>
</html>



